package rs.dalao.syc.index.dao.persist.mapper;/*
 *   @author:Casin
 *   @date:2023/8/4
 *   @code:
 */

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
import rs.dalao.syc.index.pojo.entity.Encyclopedia;
import rs.dalao.syc.index.pojo.vo.*;

import java.util.List;

@Repository
public interface EncyclopediaMapper extends BaseMapper<Encyclopedia> {
    /**查找所有的科室名称并展示*/
    List<DepartmentVO> selectDep();

    /**根据科室id查找文章列表*/
    List<EncContentListVO> selectListByArticleId(Long depId);

    /**根据科室id查找医生信息*/
    List<EncOtherDocVO> getOtherDocByDep(Long depId);

    /**根据文章id查看详情页面*/
    List<EncDetailVO> selectByIdForDetail(Long articleId);

    /**找热门文章*/
    List<HotDetailVO> selectEncHotDetail(Long depId);


    //查询到所有的文章相关信息存入Elasticsearch数据库
    List<EncContentSearchVO> selectAll();
}
